package com.larry.design.structural.proxy.dynamic;

/**
 * @author larry
 * @Title: design-frame
 * @Package com.larry.design.structural.proxy.dynamic
 * @Description: 动态代理
 *                  jdk要求被代理对象必须有接口
 * @date 9/1/2110:52 AM
 */
public class Test {
    @org.junit.Test
    public void test(){
        ManTikTok proxy = DynamicTikTok.getProxy(new LiTikTok());
        proxy.tiktok();

        SaleTikTok saleTikTok = DynamicTikTok.getProxy(new LiTikTok());
        saleTikTok.sale();
    }
}
